import java.util.ArrayList;
import java.util.Scanner;

public class Test07 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
        int [] arr= new int [5];
        int temp = 0;
        for (int i = 0; i < 5; i++) {
            arr[i] = sc.nextInt();
        }
        for (int i = 0; i < 5; i++) {
            for (int j = 0; j < 5; j++) {
                if (arr[i] == arr[j]&&i!=j) {
                    list.add(i);
                }
            }
        }
       if (list.size()>=12) {
           System.out.println("Square");
       } else if (list.size()>=4&&list.size()!=6&&list.size()<=8) {
           System.out.println("Rectangle");
       }else {
           System.out.println("No");
       }

    }
}
